package com.yobol.jgrowth.mapper;

import com.yobol.jgrowth.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface UserMapper {

    int insert(User user);

    List<User> getUserByName(String name);

    void updateLatestOnlineTime(User user);

    List<User> selectAll();
}